package com.example.campuslink.commen.db.search

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update

@Dao
interface SearchDao {

    @Insert
    fun insertSearchData(searchTable: SearchTable)

    @Update
    fun updateSearchData(searchTable: SearchTable)

    @Query("SELECT * FROM search_table WHERE userNumber = :userNumber")
    fun getSearchData(userNumber: String): SearchTable?

}